import Vue from "vue";
import Vuex from "vuex";
import getters from "./getters";
import user from "./modules/user";
import twoMenu from "./modules/twoMenu";
import isLoading from "./modules/isLoading";

// 告诉 vue “使用” vuex
Vue.use(Vuex);

export default new Vuex.Store({
  state: {},
  mutations: {},
  actions: {},
  modules: {
    user,
    twoMenu,
    isLoading
  },
  getters
});
